#ifndef _CONIO_H_
#define _CONIO_H_

#include <CType.h>

#define SCR_MODEMASK            0xFF

#define SCR_MODE_TXT_BLK_40     0x00
#define SCR_MODE_TXT_CLR_40     0x01
#define SCR_MODE_TXT_BLK_80     0x02
#define SCR_MODE_TXT_CLR_80     0x03
#define CRLF                    "\n\r"

int16_t outCStr(int8_t *s);
void outString(int8_t *s, int16_t len);
void putCh(int8_t c);
void writeCh(int8_t c, int16_t count);
int8_t getCh();
int16_t getSC();
void setCursorPos(int8_t row, int8_t col);
void getCursorPos(int8_t * row, int8_t * col);
uint16_t getVideoMode();
void clrscr();
int8_t * conInput(int16_t maxLen);

void getTime(int8_t * hr, int8_t * mn, int8_t * sc, int8_t *msc);
void getDate(int8_t * yr, int8_t * mn, int8_t * dy);

#endif _CONIO_H_ /* end of _CONIO_H_ */
